﻿using System;
using System.Collections.Generic;
using Verse;
using RimWorld;

namespace RimZombieGirl
{
    public class Building_MudSculpture : Building
    {
        public override void Destroy(DestroyMode mode = DestroyMode.Vanish)
        {
            Map map = this.Map;
            IntVec3 pos = this.Position;

            base.Destroy(mode);

            if (map != null)
            {
                // 释放污染
                PollutionUtility.GrowPollutionAt(pos, map, 12);

                //// 生成随机人肉
                //int meatCount = Rand.RangeInclusive(5, 15);
                //ThingDef meatDef = ThingDefOf.Human.race.meatDef;
                //if (meatDef != null)
                //{
                //    for (int i = 0; i < meatCount; i++)
                //    {
                //        GenSpawn.Spawn(ThingMaker.MakeThing(meatDef), pos, map);
                //    }
                //}

                //// 生成随机人皮
                //int skinCount = Rand.RangeInclusive(1, 9);
                //ThingDef skinDef = ThingDefOf.Human.race.leatherDef;
                //if (skinDef != null)
                //{
                //    for (int i = 0; i < skinCount; i++)
                //    {
                //        GenSpawn.Spawn(ThingMaker.MakeThing(skinDef), pos, map);
                //    }
                //}
            }
        }
    }
}
